#!/usr/bin/python
import MySQLdb
import config


conn = MySQLdb.connect(host="127.0.0.1",user="root",passwd="123456")

cursor = conn.cursor()
cursor.execute("drop database sklccdpi")
cursor.execute("create database if not exists sklccdpi")
cursor.execute("use sklccdpi")

# init plugin's tables
#for tables_info in config.plugin_tables:
#	cursor.execute("create table " + tables_info)

# show result 
#print ""
#print "=============================================="
print "Init successful! Database sklccdpi has tables:"
#cursor.execute("show tables")
#for tables_name in cursor.fetchall():
#	print "table %s" % tables_name 
#print "=============================================="
#print ""

cursor.close()
